<?php
function get_image( $sizex, $sizey, $arguments ) {
    $im = imagecreate( $sizex, $sizey );
    $black = imagecolorallocate( $im, 0, 0, 0 );
    $green = imagecolorallocate( $im, 0, 220, 10 );
    imagefilledrectangle( $im, 0, 0, $sizex, $sizey, $black );
    for( $y = 1; $y <= $sizey ; $y += 10 ) {
        for( $x = 1; $x <= $sizex ; $x += 75 ) {
            imagestring( $im, 5, $x, $y, $arguments, 10 );
        }
    }

    return $im;
}

function get_thumbnail($noresize, $sizex, $arguments ) {
	if($noresize) {
		$sizex = 500;
		$sizey = 500;
	} else {
		$sizey = 100;
	}
    $im = imagecreate( $sizex, $sizey );
    $black = imagecolorallocate( $im, 0, 0, 0 );
    $green = imagecolorallocate( $im, 0, 220, 10 );
    imagefilledrectangle( $im, 0, 0, $sizex, $sizey, $black );
    imagestring( $im, 5, 25, 1, $arguments, 10 );

    return $im;
}

?>